package com.bee.shepherd.service.common;


import com.google.common.collect.Maps;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Service;
import qunar.tc.qconfig.client.spring.QConfig;

import java.util.Map;

//@Service
public class HotConfigService {

    private static final Logger logger = LoggerFactory.getLogger(HotConfigService.class);

    private volatile Map<String, String> hotConfig = Maps.newHashMap();

//    @QConfig("hotconfig.properties")
    public void onConfigChange(Map<String, String> hotConfig){
        this.hotConfig=hotConfig;

    }

}
